package com.github.prontera.persistence;

import java.util.List;

import com.github.prontera.MyBatisRepository;
import com.github.prontera.domain.Activity;
import com.github.prontera.domain.Client;

/**
 * 活动Dao
 */
@MyBatisRepository
public interface ActivityMapper extends CrudMapper<Activity>{

	/**
	 * 将结束时间超过当前时间得数据状态变更为"已结束"
	 */
	int updateActivityStatus();
	
	int updateStock(Activity activity);
	
	List<Activity> findClientActivity(Activity activity);

	List<Client> findActivityClients(Activity activity);

	List<Activity> find2(Activity activity);
	
}
